package com.alibaba.middleware.hsf.guide.api.model;

import java.io.Serializable;

public class OrderEntryModel implements Serializable {

    private static final long serialVersionUID = 1361994902829781748L;
    // 主键
    private Long id;
    // 对应的订单Id
    private Long orderId;
    // 产品名称
    private String title;
    // 产品Id
    private Long productId;
    // 单位，例如：件，个
    private String unit;
    // 价格
    private Long price;
    // 数量
    private Double quantity;

    // -----------------------Getters and Setters----------------------//

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    // -----------------------Getters and Setters----------------------//

    @Override
    public String toString() {
        return "OrderEntryModel [id=" + id + ", orderId=" + orderId + ", title=" + title + ", productId=" + productId
                + ", unit=" + unit + ", price=" + price + ", quantity=" + quantity + "]";
    }

}
